package a.j.b;

import a.d.u;
import a.j.c;
import a.j.*;

import java.awt.*;
import java.awt.geom.Area;
import java.awt.geom.GeneralPath;
import java.awt.geom.Rectangle2D;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

public class k
  implements md.t_
{
  public static final String a = "y.view.tabular.TableNodePainter.TABLE_SELECTION_STYLE";
  public static final String b = "y.view.tabular.TableNodePainter.TABLE_STYLE";
  public static final String c = "y.view.tabular.TableNodePainter.ALTERNATE_COLUMN_SELECTION_STYLE";
  public static final String d = "y.view.tabular.TableNodePainter.ALTERNATE_COLUMN_STYLE";
  public static final String e = "y.view.tabular.TableNodePainter.COLUMN_SELECTION_STYLE";
  public static final String f = "y.view.tabular.TableNodePainter.COLUMN_STYLE";
  public static final String g = "y.view.tabular.TableNodePainter.ROW_SELECTION_STYLE";
  public static final String h = "y.view.tabular.TableNodePainter.ROW_STYLE";
  public static final String i = "y.view.tabular.TableNodePainter.ALTERNATE_ROW_SELECTION_STYLE";
  public static final String j = "y.view.tabular.TableNodePainter.ALTERNATE_ROW_STYLE";
  public static final g_ k = new g_(0, null);
  public static final g_ l = new g_(1, null);
  public static final g_ m = new g_(2, null);
  public static final g_ n = new g_(3, null);
  public static final g_ o = new g_(4, null);
  public static final g_ p = new g_(5, null);
  private static final String q = "y.view.tabular.TableNodePainter.BOUNDS";
  private static final String r = "y.view.tabular.TableNodePainter.COLUMN";
  private static final String s = "y.view.tabular.TableNodePainter.CONTEXT";
  private static final String t = "y.view.tabular.TableNodePainter.ROW";
  private static final String u = "y.view.tabular.TableNodePainter.TABLE";
  private static final String v = "y.view.tabular.TableNodePainter.ACCUMULATED_INSETS_ID";
  private static final ld w = g();
  public static final int x = -1;
  public static final int y = 0;
  public static final int z = 1;
  public static final int A = 2;
  public static final int B = 4;
  public static final int C = 8;
  public static final int D = 16;
  public static final int E = 32;
  public static final int F = 64;
  public static final int G = 128;
  public static final int H = 15;
  public static final int I = 240;
  private final Map J = new HashMap();
  private int K;
  public static boolean L;
  
  public static k a()
  {
    k localk = new k();
    localk.J.put(l, new i_(false));
    localk.J.put(k, new i_(true));
    localk.J.put(n, new j_(false, false));
    localk.J.put(m, new j_(true, false));
    localk.J.put(p, new k_(false, false));
    localk.J.put(o, new k_(true, false));
    return localk;
  }
  
  public static k b()
  {
    k localk = new k();
    localk.J.put(l, new i_(false));
    localk.J.put(k, new i_(true));
    localk.J.put(n, new j_(false, true));
    localk.J.put(m, new j_(true, true));
    localk.J.put(p, new k_(false, true));
    localk.J.put(o, new k_(true, true));
    return localk;
  }
  
  public static k c()
  {
    k localk = new k();
    localk.J.put(l, new i_(false));
    localk.J.put(k, new i_(true));
    localk.J.put(n, new j_(false, true));
    localk.J.put(m, new j_(true, true));
    localk.J.put(p, new k_(false, false));
    localk.J.put(o, new k_(true, false));
    return localk;
  }
  
  public static k d()
  {
    k localk = new k();
    localk.J.put(l, new i_(false));
    localk.J.put(k, new i_(true));
    localk.J.put(n, new j_(false, false));
    localk.J.put(m, new j_(true, false));
    localk.J.put(p, new k_(false, true));
    localk.J.put(o, new k_(true, true));
    return localk;
  }
  
  public static k e()
  {
    k localk = new k();
    localk.J.put(l, null);
    localk.J.put(k, new d_(null));
    localk.J.put(n, null);
    localk.J.put(m, new e_(null));
    localk.J.put(p, null);
    localk.J.put(o, new f_(null));
    return localk;
  }
  
  public md.t_ a(g_ paramg_)
  {
    return (md.t_)this.J.get(paramg_);
  }
  
  public void a(g_ paramg_, md.t_ paramt_)
  {
    if (f.Wb == 0) {
      if (paramg_ == null) {
        throw new IllegalArgumentException("Type may not be null.");
      }
    }
    this.J.put(paramg_, paramt_);
  }
  
  public int f()
  {
    return this.K;
  }
  
  public void a(int paramInt)
  {
    this.K = paramInt;
  }
  
  public void a(ld paramld, Graphics2D paramGraphics2D)
  {
    b(paramld, paramGraphics2D, false);
  }
  
  protected void c(ld paramld, Graphics2D paramGraphics2D)
  {
    if ((f.Wb != 0) || (d(paramld, paramGraphics2D))) {
      paramld.b(paramGraphics2D);
    }
  }
  
  static boolean d(ld paramld, Graphics2D paramGraphics2D)
  {
    int i1 = f.Wb;
    if ((i1 != 0) || (paramld.H())) {
      if (i1 != 0) {}
    }
    return kg.b(paramGraphics2D);
  }
  
  static boolean a(Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    int i1 = f.Wb;
    Object localObject = paramGraphics2D.getRenderingHint(kg.g);
    if (i1 == 0) {
      if (paramBoolean) {
        return kg.i.equals(localObject);
      }
    }
    if (i1 == 0) {}
    return !kg.j.equals(localObject);
  }
  
  static boolean c(Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    int i1 = f.Wb;
    Object localObject = paramGraphics2D.getRenderingHint(kg.k);
    if (i1 == 0) {
      if (paramBoolean) {
        return kg.m.equals(localObject);
      }
    }
    if (i1 == 0) {}
    return !kg.n.equals(localObject);
  }
  
  protected void e(ld paramld, Graphics2D paramGraphics2D)
  {
    paramld.g(paramGraphics2D);
  }
  
  protected void f(ld paramld, Graphics2D paramGraphics2D)
  {
    if ((f.Wb != 0) || (paramld.x() > 0)) {
      paramld.f(paramGraphics2D);
    }
  }
  
  public void b(ld paramld, Graphics2D paramGraphics2D)
  {
    b(paramld, paramGraphics2D, true);
  }
  
  protected void a(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    if ((paramld instanceof f))
    {
      Graphics2D localGraphics2D = (Graphics2D)paramGraphics2D.create();
      md local7 = new md(w)
      {
        public Object l()
        {
          return ((md)c("y.view.tabular.TableNodePainter.CONTEXT")).l();
        }
      };
      f localf = (f)paramld;
      a(localf, local7);
      local7.e(d(paramld, paramGraphics2D));
      local7.a("y.view.tabular.TableNodePainter.BOUNDS", new Rectangle2D.Double());
      local7.a("y.view.tabular.TableNodePainter.CONTEXT", localf);
      local7.a("y.view.tabular.TableNodePainter.TABLE", localf.eb());
      a(local7, localGraphics2D, paramBoolean, false);
      a(local7, localGraphics2D, paramBoolean, true);
      localGraphics2D.dispose();
    }
  }
  
  private void b(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
  {
    int i1 = f.Wb;
    if (i1 == 0)
    {
      if (!paramBoolean) {
        c(paramld, paramGraphics2D);
      }
      a(paramld, paramGraphics2D, paramBoolean);
    }
    if (i1 == 0) {
      if (c(paramGraphics2D, paramBoolean)) {
        e(paramld, paramGraphics2D);
      }
    }
    if (a(paramGraphics2D, paramBoolean)) {
      f(paramld, paramGraphics2D);
    }
  }
  
  private void a(md parammd, Graphics2D paramGraphics2D, boolean paramBoolean1, boolean paramBoolean2)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    f localf = a(parammd);
    f.r_ localr_ = localf.eb();
    double d1 = localf.a();
    double d2 = localf.b();
    double d3 = localf.c();
    double d4 = localf.d();
    md.t_ localt_1 = a(paramBoolean2 ? k : l);
    if (i1 == 0)
    {
      if (localt_1 != null) {
        parammd.a(d1, d2, d3, d4);
      }
    }
    else
    {
      if (i1 == 0)
      {
        if (paramBoolean1)
        {
          if (i1 != 0) {
            break label125;
          }
          localt_1.b(parammd, paramGraphics2D);
        }
      }
      else {
        if (!bool) {
          break label130;
        }
      }
      label125:
      localt_1.a(parammd, paramGraphics2D);
    }
    label130:
    md.t_ localt_2 = a(paramBoolean2 ? m : n);
    Object localObject1;
    Object localObject2;
    if (localt_2 != null)
    {
      double d5 = d1 + localf.tb();
      double d7 = d2;
      double d9 = d4;
      u localu = localr_.d();
      d7 += localu.b;
      d9 -= localu.b + localu.d;
      localObject1 = localr_.l().iterator();
      if (((Iterator)localObject1).hasNext()) {}
      while (i1 != 0)
      {
        localObject2 = (f.n_)((Iterator)localObject1).next();
        parammd.a("y.view.tabular.TableNodePainter.COLUMN", localObject2);
        double d11 = ((f.n_)localObject2).g();
        parammd.a(d5, d7, d11, d9);
        if (i1 != 0) {
          break label316;
        }
        a(parammd, paramGraphics2D, paramBoolean1, localt_2);
        d5 += d11;
        if (bool) {
          break label315;
        }
        if (!bool) {
          break;
        }
      }
      parammd.d("y.view.tabular.TableNodePainter.COLUMN");
    }
    label315:
    label316:
    md.t_ localt_3 = a(paramBoolean2 ? o : p);
    if (localt_3 != null)
    {
      double d6 = d1;
      double d8 = d2 + localf.rb();
      double d10 = d3;
      localObject1 = localr_.d();
      d6 += ((u)localObject1).c;
      d10 -= ((u)localObject1).c + ((u)localObject1).e;
      localObject2 = localr_.o().iterator();
      if (((Iterator)localObject2).hasNext()) {}
      while (i1 != 0)
      {
        f.p_ localp_ = (f.p_)((Iterator)localObject2).next();
        parammd.a("y.view.tabular.TableNodePainter.ROW", localp_);
        double d12 = localp_.g();
        parammd.a(d6, d8, d10, d12);
        b(parammd, paramGraphics2D, paramBoolean1, localt_3);
        d8 += d12;
        if ((i1 == 0) && (bool)) {
          return;
        }
        if (!bool) {
          break;
        }
      }
      parammd.d("y.view.tabular.TableNodePainter.ROW");
    }
  }
  
  private void a(md parammd, Graphics2D paramGraphics2D, boolean paramBoolean, md.t_ paramt_)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    f.n_ localn_1 = c(parammd);
    double d1 = parammd.a();
    double d2 = parammd.b();
    double d3 = parammd.d();
    u localu = a(parammd, localn_1.i());
    if (i1 == 0) {
      if (d(1))
      {
        d2 += localu.b;
        d3 -= localu.b;
      }
    }
    if (i1 == 0) {
      if (d(4)) {
        d3 -= localu.d;
      }
    }
    if (i1 == 0)
    {
      if (paramBoolean)
      {
        if (i1 != 0) {
          break label136;
        }
        paramt_.b(parammd, paramGraphics2D);
      }
    }
    else {
      if (!bool) {
        break label141;
      }
    }
    label136:
    paramt_.a(parammd, paramGraphics2D);
    label141:
    List localList = localn_1.l();
    Iterator localIterator = localList.iterator();
    label269:
    label278:
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      f.n_ localn_2 = (f.n_)localIterator.next();
      parammd.a("y.view.tabular.TableNodePainter.COLUMN", localn_2);
      double d4 = localn_2.g();
      double d5 = 0.0D;
      double d6 = 0.0D;
      if (i1 == 0) {
        if (localn_2.b() == 0)
        {
          if (i1 == 0)
          {
            if (c(2))
            {
              d4 += localu.c;
              d5 = localu.c;
            }
          }
          else
          {
            if (i1 != 0) {
              break label278;
            }
            if (!bool) {
              break label269;
            }
          }
          d1 += localu.c;
        }
      }
      if (i1 == 0)
      {
        if (localn_2.b() + 1 == localn_1.k())
        {
          if (i1 != 0) {
            continue;
          }
          if (c(8))
          {
            d4 += localu.e;
            d6 = localu.e;
          }
        }
        parammd.a(d1, d2, d4, d3);
        parammd.a("y.view.tabular.TableNodePainter.ACCUMULATED_INSETS_ID", new u(localu.b, d5, localu.d, d6));
        a(parammd, paramGraphics2D, paramBoolean, paramt_);
        parammd.d("y.view.tabular.TableNodePainter.ACCUMULATED_INSETS_ID");
        d1 += d4;
      }
    } while (!bool);
  }
  
  private void b(md parammd, Graphics2D paramGraphics2D, boolean paramBoolean, md.t_ paramt_)
  {
    int i1 = f.Wb;
    boolean bool = f.Vb;
    f.p_ localp_1 = d(parammd);
    double d1 = parammd.a();
    double d2 = parammd.b();
    double d3 = parammd.c();
    u localu = c(parammd, localp_1.i());
    if (i1 == 0) {
      if (d(32))
      {
        d1 += localu.c;
        d3 -= localu.c;
      }
    }
    if (i1 == 0) {
      if (d(128)) {
        d3 -= localu.e;
      }
    }
    if (i1 == 0)
    {
      if (paramBoolean)
      {
        if (i1 != 0) {
          break label139;
        }
        paramt_.b(parammd, paramGraphics2D);
      }
    }
    else {
      if (!bool) {
        break label144;
      }
    }
    label139:
    paramt_.a(parammd, paramGraphics2D);
    label144:
    List localList = localp_1.o();
    Iterator localIterator = localList.iterator();
    label273:
    label282:
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      f.p_ localp_2 = (f.p_)localIterator.next();
      parammd.a("y.view.tabular.TableNodePainter.ROW", localp_2);
      double d4 = localp_2.g();
      double d5 = 0.0D;
      double d6 = 0.0D;
      if (i1 == 0) {
        if (localp_2.b() == 0)
        {
          if (i1 == 0)
          {
            if (c(16))
            {
              d4 += localu.b;
              d5 = localu.b;
            }
          }
          else
          {
            if (i1 != 0) {
              break label282;
            }
            if (!bool) {
              break label273;
            }
          }
          d2 += localu.b;
        }
      }
      if (i1 == 0)
      {
        if (localp_2.b() + 1 == localp_1.n())
        {
          if (i1 != 0) {
            continue;
          }
          if (c(64))
          {
            d4 += localu.d;
            d6 = localu.d;
          }
        }
        parammd.a(d1, d2, d3, d4);
        parammd.a("y.view.tabular.TableNodePainter.ACCUMULATED_INSETS_ID", new u(d5, localu.c, d6, localu.e));
        b(parammd, paramGraphics2D, paramBoolean, paramt_);
        parammd.d("y.view.tabular.TableNodePainter.ACCUMULATED_INSETS_ID");
        d2 += d4;
      }
    } while (!bool);
  }
  
  private u a(md parammd, u paramu)
  {
    int[] arrayOfInt = { 1, 2, 4, 8 };
    return a(parammd, paramu, arrayOfInt);
  }
  
  private u c(md parammd, u paramu)
  {
    int[] arrayOfInt = { 16, 32, 64, 128 };
    return a(parammd, paramu, arrayOfInt);
  }
  
  private u a(md parammd, u paramu, int[] paramArrayOfInt)
  {
    Object localObject = parammd.c("y.view.tabular.TableNodePainter.ACCUMULATED_INSETS_ID");
    if ((localObject instanceof u))
    {
      double d1 = paramu.b;
      if (c(paramArrayOfInt[0])) {
        d1 += ((u)localObject).b;
      }
      double d2 = paramu.c;
      if (c(paramArrayOfInt[1])) {
        d2 += ((u)localObject).c;
      }
      double d3 = paramu.d;
      if (c(paramArrayOfInt[2])) {
        d3 += ((u)localObject).d;
      }
      double d4 = paramu.e;
      if (c(paramArrayOfInt[3])) {
        d4 += ((u)localObject).e;
      }
      return new u(d1, d2, d3, d4);
    }
    return paramu;
  }
  
  private boolean c(int paramInt)
  {
    if (f.Wb == 0) {}
    return (this.K & paramInt) == paramInt;
  }
  
  private boolean d(int paramInt)
  {
    if (f.Wb == 0) {}
    return !c(paramInt);
  }
  
  private static ld g()
  {
    md localmd = new md();
    localmd.a(0.0D, 0.0D);
    localmd.a(null);
    localmd.b(null);
    localmd.c(null);
    while (localmd.x() > 0) {
      localmd.c(localmd.b(0));
    }
    return localmd;
  }
  
  private void a(md parammd1, md parammd2)
  {
    boolean bool = f.Vb;
    parammd2.a(parammd1.a(), parammd1.b(), parammd1.c(), parammd1.d());
    parammd2.a(parammd1.o());
    parammd2.b(parammd1.p());
    parammd2.c(parammd1.q());
    parammd2.a(parammd1.r());
    Iterator localIterator = parammd1.f().iterator();
    do
    {
      if (!localIterator.hasNext()) {
        break;
      }
      Map.Entry localEntry = (Map.Entry)localIterator.next();
      parammd2.a((String)localEntry.getKey(), localEntry.getValue());
    } while (!bool);
  }
  
  public static f a(ld paramld)
  {
    return (f)((md)paramld).c("y.view.tabular.TableNodePainter.CONTEXT");
  }
  
  public static f.r_ b(ld paramld)
  {
    return (f.r_)((md)paramld).c("y.view.tabular.TableNodePainter.TABLE");
  }
  
  public static f.n_ c(ld paramld)
  {
    return (f.n_)((md)paramld).c("y.view.tabular.TableNodePainter.COLUMN");
  }
  
  public static f.p_ d(ld paramld)
  {
    return (f.p_)((md)paramld).c("y.view.tabular.TableNodePainter.ROW");
  }
  
  private static Rectangle2D e(ld paramld)
  {
    Rectangle2D localRectangle2D = (Rectangle2D)((md)paramld).c("y.view.tabular.TableNodePainter.BOUNDS");
    localRectangle2D.setFrame(paramld.a(), paramld.b(), paramld.c(), paramld.d());
    return localRectangle2D;
  }
  
  private static l a(ld paramld, String paramString)
  {
    return (l)((md)paramld).c(paramString);
  }
  
  public static final class g_
  {
    private final int a;
    public static int b;
    
    private g_(int paramInt)
    {
      this.a = paramInt;
    }
    
    public boolean equals(Object paramObject)
    {
      int i = f.Wb;
      if (i == 0) {
        if (this == paramObject) {
          return true;
        }
      }
      if (paramObject != null)
      {
        if (i != 0) {
          break label37;
        }
        if (getClass() == paramObject.getClass()) {}
      }
      else
      {
        return false;
      }
      label37:
      g_ localg_ = (g_)paramObject;
      if (i == 0) {
        if (this.a != localg_.a) {
          return false;
        }
      }
      return true;
    }
    
    public int hashCode()
    {
      return this.a;
    }
    
    g_(int paramInt, k.7 param7)
    {
      this(paramInt);
    }
  }
  
  private static final class f_
    extends k.c_
  {
    private f_()
    {
      super();
    }
    
    void c(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
    {
      k.c_.a_ locala_ = c(paramld);
      Rectangle2D localRectangle2D = k.e(paramld);
      GeneralPath localGeneralPath = locala_.a;
      localGeneralPath.reset();
      double d1 = localRectangle2D.getX();
      double d2 = locala_.b;
      double d3 = d(paramld) ? locala_.d : localRectangle2D.getY() + localRectangle2D.getHeight();
      double d4;
      if (b(paramld))
      {
        d4 = locala_.c;
        localGeneralPath.moveTo((float)d2, (float)d3);
        localGeneralPath.lineTo((float)d1, (float)d3);
        localGeneralPath.lineTo((float)d1, (float)d4);
        localGeneralPath.lineTo((float)d2, (float)d4);
        localGeneralPath.lineTo((float)(d2 + locala_.e), (float)(d4 + locala_.f * 0.5D));
        localGeneralPath.lineTo((float)d2, (float)(d4 + locala_.f));
        if (f.Wb != 0) {
          return;
        }
        if (!f.Vb) {}
      }
      else
      {
        d4 = localRectangle2D.getY();
        localGeneralPath.moveTo((float)d2, (float)d3);
        localGeneralPath.lineTo((float)d1, (float)d3);
        localGeneralPath.lineTo((float)d1, (float)d4);
        localGeneralPath.lineTo((float)d2, (float)d4);
      }
      localGeneralPath.closePath();
      paramGraphics2D.draw(localGeneralPath);
    }
    
    l a(ld paramld)
    {
      return k.a(paramld, k.d(paramld).e() ? "y.view.tabular.TableNodePainter.ROW_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.ROW_STYLE");
    }
    
    private static boolean b(ld paramld)
    {
      int i = f.Wb;
      f.p_ localp_ = k.d(paramld);
      f.q_ localq_ = localp_.a();
      if ((i != 0) || ((localq_ instanceof f.r_))) {
        if (i != 0) {}
      }
      return localp_.b() == 0;
    }
    
    private static boolean d(ld paramld)
    {
      int i = f.Wb;
      f.p_ localp_ = k.d(paramld);
      f.q_ localq_ = localp_.a();
      List localList = localq_.o();
      if ((i != 0) || ((localq_ instanceof f.r_))) {
        if (i != 0) {}
      }
      return localList.indexOf(localp_) == localList.size() - 1;
    }
    
    f_(k.7 param7)
    {
      this();
    }
  }
  
  private static final class e_
    extends k.c_
  {
    private e_()
    {
      super();
    }
    
    void c(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
    {
      int i = f.Wb;
      boolean bool = f.Vb;
      k.c_.a_ locala_ = c(paramld);
      Rectangle2D localRectangle2D = k.e(paramld);
      double d1 = localRectangle2D.getX();
      double d2 = d1 + localRectangle2D.getWidth();
      double d3 = locala_.c;
      double d4 = locala_.d;
      GeneralPath localGeneralPath = locala_.a;
      localGeneralPath.reset();
      localGeneralPath.moveTo((float)d2, (float)d4);
      localGeneralPath.lineTo((float)d1, (float)d4);
      if (i == 0) {
        if (b(paramld))
        {
          localGeneralPath.lineTo((float)d1, (float)d3);
          localGeneralPath.lineTo((float)d2, (float)d3);
          if (i != 0) {
            return;
          }
          if (!locala_.g) {
            break label330;
          }
          localGeneralPath.lineTo((float)(d2 + locala_.e), (float)(d3 + locala_.f * 0.5D));
          localGeneralPath.lineTo((float)d2, (float)(d3 + locala_.f));
          if (i != 0) {
            return;
          }
          if (!bool) {
            break label330;
          }
        }
      }
      if (locala_.g)
      {
        double d5 = d3 + locala_.f * 0.5D;
        double d6 = d3 + locala_.f;
        localGeneralPath.lineTo((float)d1, (float)d6);
        localGeneralPath.lineTo((float)(d1 + locala_.e), (float)d5);
        localGeneralPath.lineTo((float)d1, (float)d3);
        localGeneralPath.lineTo((float)d2, (float)d3);
        localGeneralPath.lineTo((float)(d2 + locala_.e), (float)d5);
        localGeneralPath.lineTo((float)d2, (float)d6);
        if (i != 0) {
          return;
        }
        if (!bool) {}
      }
      else
      {
        localGeneralPath.lineTo((float)d1, (float)d3);
        localGeneralPath.lineTo((float)d2, (float)d3);
      }
      label330:
      localGeneralPath.closePath();
      paramGraphics2D.draw(localGeneralPath);
    }
    
    l a(ld paramld)
    {
      return k.a(paramld, k.c(paramld).e() ? "y.view.tabular.TableNodePainter.COLUMN_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.COLUMN_STYLE");
    }
    
    private static boolean b(ld paramld)
    {
      int i = f.Wb;
      f.n_ localn_ = k.c(paramld);
      f.o_ localo_ = localn_.a();
      if ((i != 0) || ((localo_ instanceof f.r_))) {
        if (i != 0) {}
      }
      return localn_.b() == 0;
    }
    
    e_(k.7 param7)
    {
      this();
    }
  }
  
  private static final class d_
    extends k.c_
  {
    private d_()
    {
      super();
    }
    
    void c(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
    {
      int i = f.Wb;
      k.c_.a_ locala_ = c(paramld);
      Rectangle2D localRectangle2D = k.e(paramld);
      double d1 = localRectangle2D.getX();
      double d2 = d1 + localRectangle2D.getWidth() - ((i != 0) || (locala_.g) ? locala_.e : 0.0D);
      double d3 = locala_.c;
      double d4 = locala_.d;
      GeneralPath localGeneralPath = locala_.a;
      localGeneralPath.reset();
      localGeneralPath.moveTo((float)d2, (float)d4);
      localGeneralPath.lineTo((float)d1, (float)d4);
      localGeneralPath.lineTo((float)d1, (float)d3);
      localGeneralPath.lineTo((float)d2, (float)d3);
      if (i == 0)
      {
        if (locala_.g)
        {
          localGeneralPath.lineTo((float)(d2 + locala_.e), (float)(d3 + locala_.f * 0.5D));
          localGeneralPath.lineTo((float)d2, (float)(d3 + locala_.f));
        }
        localGeneralPath.closePath();
        paramGraphics2D.draw(localGeneralPath);
      }
    }
    
    l a(ld paramld)
    {
      return k.a(paramld, paramld.H() ? "y.view.tabular.TableNodePainter.TABLE_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.TABLE_STYLE");
    }
    
    d_(k.7 param7)
    {
      this();
    }
  }
  
  private static abstract class c_
    implements md.t_
  {
    private static final String a = "y.view.tabular.TableNodePainter.AbstractBpmnPainter.BPMN_INFO";
    
    private c_() {}
    
    public void a(ld paramld, Graphics2D paramGraphics2D)
    {
      a(paramld, paramGraphics2D, false);
    }
    
    public void b(ld paramld, Graphics2D paramGraphics2D)
    {
      a(paramld, paramGraphics2D, true);
    }
    
    private void a(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
    {
      int i = f.Wb;
      Color localColor = null;
      Object localObject = null;
      f localf = k.a(paramld);
      l locall = a(paramld);
      if (i == 0) {
        if (locall == null)
        {
          localColor = localf.q();
          localObject = localf.r();
          break label115;
        }
      }
      localColor = locall.b(localf);
      localObject = locall.a(localf);
      if ((i != 0) || (localColor == null)) {
        localColor = locall.e(localf);
      }
      if ((i != 0) || (localObject == null)) {
        localObject = locall.d(localf);
      }
      label115:
      if ((localColor == null) || (localObject == null)) {
        return;
      }
      paramGraphics2D.setColor(localColor);
      paramGraphics2D.setStroke((Stroke)localObject);
      c(paramld, paramGraphics2D, paramBoolean);
    }
    
    abstract void c(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean);
    
    abstract l a(ld paramld);
    
    static a_ c(ld paramld)
    {
      a_ locala_ = (a_)((md)paramld).c("y.view.tabular.TableNodePainter.AbstractBpmnPainter.BPMN_INFO");
      if (f.Wb == 0) {
        if (locala_ == null)
        {
          f localf = k.a(paramld);
          u localu = localf.eb().d();
          locala_ = new a_(localf.a() + localf.c() - localu.e, localf.b(), localf.b() + localf.d(), localu.e, localu.b);
          ((md)paramld).a("y.view.tabular.TableNodePainter.AbstractBpmnPainter.BPMN_INFO", locala_);
        }
      }
      return locala_;
    }
    
    c_(k.7 param7)
    {
      this();
    }
    
    static final class a_
    {
      final GeneralPath a;
      final double b;
      final double c;
      final double d;
      final double e;
      final double f;
      final boolean g;
      
      a_(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, double paramDouble5)
      {
        this.b = paramDouble1;
        this.c = paramDouble2;
        this.d = paramDouble3;
        this.e = paramDouble4;
        this.f = paramDouble5;
        if ((i != 0) || (paramDouble4 > 0.0D)) {
          if (i != 0) {}
        }
        this.g = (paramDouble5 > 0.0D);
        this.a = new GeneralPath();
      }
    }
  }
  
  private static class b_
    implements l
  {
    private final boolean a;
    
    b_(boolean paramBoolean)
    {
      this.a = paramBoolean;
    }
    
    public Stroke a(ld paramld)
    {
      return null;
    }
    
    public Color b(ld paramld)
    {
      return null;
    }
    
    public Color c(ld paramld)
    {
      return null;
    }
    
    public Stroke d(ld paramld)
    {
      c localc = paramld.r();
      if ((f.Wb != 0) || (this.a)) {
        return c.a((int)Math.ceil(localc.getLineWidth()) + 2, localc.a());
      }
      return localc;
    }
    
    public Color e(ld paramld)
    {
      return paramld.q();
    }
    
    public Color f(ld paramld)
    {
      return paramld.p();
    }
  }
  
  private static class k_
    extends k.l_
  {
    private final boolean g;
    
    k_(boolean paramBoolean1, boolean paramBoolean2)
    {
      super();
      this.g = paramBoolean2;
    }
    
    u a(ld paramld)
    {
      return k.d(paramld).i();
    }
    
    l b(ld paramld)
    {
      l locall = c(paramld);
      if (f.Wb == 0) {
        if (locall == null) {
          return new k.b_(k.d(paramld).e());
        }
      }
      return locall;
    }
    
    private l c(ld paramld)
    {
      if (this.g)
      {
        f.p_ localp_ = k.d(paramld);
        if (localp_.b() % 2 == 0) {
          return k.a(paramld, k.d(paramld).e() ? "y.view.tabular.TableNodePainter.ROW_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.ROW_STYLE");
        }
        return k.a(paramld, k.d(paramld).e() ? "y.view.tabular.TableNodePainter.ALTERNATE_ROW_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.ALTERNATE_ROW_STYLE");
      }
      return k.a(paramld, k.d(paramld).e() ? "y.view.tabular.TableNodePainter.ROW_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.ROW_STYLE");
    }
  }
  
  private static class j_
    extends k.l_
  {
    private final boolean g;
    
    j_(boolean paramBoolean1, boolean paramBoolean2)
    {
      super();
      this.g = paramBoolean2;
    }
    
    u a(ld paramld)
    {
      return k.c(paramld).i();
    }
    
    l b(ld paramld)
    {
      l locall = c(paramld);
      if (f.Wb == 0) {
        if (locall == null) {
          return new k.b_(k.c(paramld).e());
        }
      }
      return locall;
    }
    
    private l c(ld paramld)
    {
      if (this.g)
      {
        f.n_ localn_ = k.c(paramld);
        if (localn_.b() % 2 == 0) {
          return k.a(paramld, k.c(paramld).e() ? "y.view.tabular.TableNodePainter.COLUMN_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.COLUMN_STYLE");
        }
        return k.a(paramld, k.c(paramld).e() ? "y.view.tabular.TableNodePainter.ALTERNATE_COLUMN_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.ALTERNATE_COLUMN_STYLE");
      }
      return k.a(paramld, k.c(paramld).e() ? "y.view.tabular.TableNodePainter.COLUMN_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.COLUMN_STYLE");
    }
  }
  
  private static class a_
    implements l
  {
    private final boolean a;
    
    a_(boolean paramBoolean)
    {
      this.a = paramBoolean;
    }
    
    public Stroke a(ld paramld)
    {
      if ((f.Wb != 0) || (h(paramld))) {
        return g(paramld);
      }
      return null;
    }
    
    public Color b(ld paramld)
    {
      if (h(paramld)) {
        return paramld.q();
      }
      return null;
    }
    
    public Color c(ld paramld)
    {
      return paramld.o();
    }
    
    public Stroke d(ld paramld)
    {
      if (f.Wb == 0) {
        if (h(paramld)) {
          return null;
        }
      }
      return g(paramld);
    }
    
    public Color e(ld paramld)
    {
      if (h(paramld)) {
        return null;
      }
      return paramld.q();
    }
    
    public Color f(ld paramld)
    {
      return paramld.o();
    }
    
    private Stroke g(ld paramld)
    {
      c localc = paramld.r();
      if ((f.Wb != 0) || (this.a)) {
        return c.a((int)Math.ceil(localc.getLineWidth()) + 2, localc.a());
      }
      return localc;
    }
    
    private boolean h(ld paramld)
    {
      int i = f.Wb;
      u localu = i(paramld);
      if (i == 0) {
        if (localu.b <= 0.0D)
        {
          if (i != 0) {
            break label63;
          }
          if (localu.c <= 0.0D)
          {
            if (i != 0) {
              break label63;
            }
            if (localu.d <= 0.0D) {
              if (i != 0) {
                break label63;
              }
            }
          }
        }
      }
      label63:
      return localu.e > 0.0D;
    }
    
    private u i(ld paramld)
    {
      if ((f.Wb != 0) || ((paramld instanceof f))) {
        return ((f)paramld).eb().d();
      }
      return null;
    }
  }
  
  private static final class i_
    extends k.l_
  {
    i_(boolean paramBoolean)
    {
      super();
    }
    
    u a(ld paramld)
    {
      return k.b(paramld).d();
    }
    
    l b(ld paramld)
    {
      l locall = c(paramld);
      if (f.Wb == 0) {
        if (locall == null) {
          return new k.a_(paramld.H());
        }
      }
      return locall;
    }
    
    private l c(ld paramld)
    {
      return k.a(paramld, paramld.H() ? "y.view.tabular.TableNodePainter.TABLE_SELECTION_STYLE" : "y.view.tabular.TableNodePainter.TABLE_STYLE");
    }
  }
  
  private static abstract class l_
    extends n
  {
    private final boolean f;
    
    l_(boolean paramBoolean)
    {
      this.f = paramBoolean;
    }
    
    public void a(ld paramld, Graphics2D paramGraphics2D)
    {
      if (paramld.D())
      {
        a(paramGraphics2D);
        try
        {
          a(paramld, paramGraphics2D, false);
        }
        finally
        {
          b(paramGraphics2D);
        }
      }
    }
    
    protected void a(ld paramld, Graphics2D paramGraphics2D, boolean paramBoolean)
    {
      int i = f.Wb;
      boolean bool = f.Vb;
      Rectangle2D localRectangle2D = k.e(paramld);
      double d1 = localRectangle2D.getX();
      double d2 = localRectangle2D.getY();
      double d3 = localRectangle2D.getWidth();
      double d4 = localRectangle2D.getHeight();
      f localf = k.a(paramld);
      l locall = b(paramld);
      u localu = a(paramld);
      if (((i != 0) || (localu.b <= 0.0D)) && ((i != 0) || (localu.c <= 0.0D)) && ((i != 0) || (localu.d <= 0.0D)))
      {
        if (i != 0) {
          break label399;
        }
        if (localu.e <= 0.0D) {}
      }
      else if (((i == 0) && (locall.c(localf) != null)) || (((i != 0) || (locall.a(localf) != null)) && (locall.b(localf) != null)))
      {
        double d5 = d1 + localu.c;
        double d6 = d2 + localu.b;
        double d7 = d3 - localu.c - localu.e;
        double d8 = d4 - localu.b - localu.d;
        if (this.f)
        {
          if (((i != 0) || (locall.a(localf) != null)) && (locall.b(localf) != null))
          {
            if (i != 0) {
              break label392;
            }
            localRectangle2D.setFrame(d1, d2, d3, d4);
            paramGraphics2D.setStroke(locall.a(localf));
            paramGraphics2D.setColor(locall.b(localf));
            paramGraphics2D.draw(localRectangle2D);
            if (!bool) {}
          }
        }
        else if (locall.c(localf) != null)
        {
          Area localArea = new Area(localRectangle2D);
          localRectangle2D.setFrame(d5, d6, d7, d8);
          localArea.subtract(new Area(localRectangle2D));
          paramGraphics2D.setColor(locall.c(localf));
          paramGraphics2D.fill(localArea);
        }
        label392:
        localRectangle2D.setFrame(d5, d6, d7, d8);
      }
      if (this.f)
      {
        label399:
        if (((i != 0) || (locall.d(localf) != null)) && (locall.e(localf) != null))
        {
          paramGraphics2D.setStroke(locall.d(localf));
          paramGraphics2D.setColor(locall.e(localf));
          paramGraphics2D.draw(localRectangle2D);
          if (!bool) {}
        }
      }
      else if (locall.f(localf) != null)
      {
        paramGraphics2D.setColor(locall.f(localf));
        paramGraphics2D.fill(localRectangle2D);
      }
    }
    
    abstract u a(ld paramld);
    
    abstract l b(ld paramld);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.b.k

 * JD-Core Version:    0.7.0.1

 */